<?php
namespace ZyucMini\Components\Project\Models;

use ZyucMini\Core\Model;

class Project extends Model
{
    protected $connection = 'uxt';
    protected $table = 'project';
    protected $primaryKey = 'proj_id';
    

    // 获取项目列表
    public function getList($ids)
    {
        return $this
            ->newQuery()
            ->fields('proj_id, proj_name')
            ->where('proj_id', 'IN', $ids)
            ->all();
    }

    // 获取所有项目列表
    public function getAllList()
    {
        return $this
            ->newQuery()
            ->fields('proj_id, proj_name')
            ->where('proj_status', '=', 0)
            ->all();
    }
}
?>